export default function ({ $axios, store, app, redirect, error, isServer }) {
  $axios.defaults.timeout = 40000
  $axios.defaults.maxContentLength = 10485760
  $axios.defaults.baseURL = '/api'
  /* 添加拦截器 */
  $axios.interceptors.request.use(function (config) {
    return config
  }, function (error) {
    return Promise.reject(error)
  })
  /* 添加响应拦截器 */
  $axios.interceptors.response.use(function (response) {
    return response.data
  }, function (err) {
    return Promise.reject(err)
  })
}
